- content_for :meta do
  %meta{:name => "Description", :content => "Focusing on high school senior photography with a fashion-oriented photo shoot in the Suttons Bay, Traverse City, Leelanau, Leland, Northport and surrounding Michigan areas"}
  %meta{:name => "Abstract", :content => "Photographer specializing in high school senior pictures and senior portraits in northern Michigan"}
  %meta{:name => "Keywords", :content => "senior pictures, senior photos, senior portraits, michigan, photography, photographer, suttons bay, leelanau, northport, leland, traverse city, kingsley, ann arbor"}
- content_for :head do
  = javascript_include_tag "AC_ActiveX"
  = javascript_include_tag "AC_RunActiveContent"
- content_for :title do
  = "Senior Portraits and Wedding Photographer in Suttons Bay, Leland, Northport, Lake Leelanau, Glen Arbor and Traverse City Michigan"
- content_for :page_description do
  = "Dan Stewart Photography offers a number of photographic services to the Northern Michigan Community, including sports photography, senior portraits and senior picture photography, and freelance photography. Suttons Bay Photographer Dan Stewart is ready to assist you and is willing to travel to Traverse City, Northport, Glen Lake, Leland, Frankfort, Omena, and Cadillac to serve your photography needs."
- if @random
  - if @random.is_a?(Photo)
    %div.large_photo
      %a{:href => home_url}
        = image_tag(@random.public_filename(:screen), :class => 'large_screen_photo')
    - unless @random.caption.blank?  
      %div.photo_description
        %p=#@random.caption
  - if @random.is_a?(Video)
    %div.flash_video_container
      %div.flash_video
        %script{:type => "text/javascript"}
          = "AC_AX_RunContent( 'classid','clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B','width','853','height','494','codebase','http://www.apple.com/qtactivex/qtplugin.cab','src','" + @random.public_filename.to_s + "','autoplay','true','controller','true','pluginspage','http://www.apple.com/quicktime/download/' );"
        %noscript
          %object{:classid => "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B", :width => "853", :height => "494", :codecase => "http://www.apple.com/qtactivex/qtplugin.cab"}
            %param{:name => "SRC", :value => @random.public_filename}
            %param{:name => "AUTOPLAY", :value => "true"}
            %param{:name => "CONTROLLER", :value => "true"}
            %embed{:src => @random.public_filename, :width => "853", :height => "494", :autoplay => "true", :controller => "true", :pluginspace => "http://www.apple.com/quicktime/download/"}
      %div.video_description
        %p=#@random.description
- else
  %div.large_photo
    %a{:href => home_url}
      = image_tag("", :class => 'large_screen_photo', :alt => "No photos have been set to be included in the random homepage display.")